package com.fla.aiba.entity.user;

import com.fla.aiba.entity.Entitys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户实名认证
 * Created by qudingyi on 2017/4/25.
 */

public class CardAuthentication  extends Entitys implements Serializable{
    /**
     * 用户ID
     */
    @Id
    private String userId;
    /**
     * 本人身份证图片
     */
    @Column(nullable = false)
    private String fullName;
    /**
     * 身份证号码
     */
    @Column(nullable = false)
    private String idCard;

    @Column(nullable = false)
    private  String  beforeImg;
    /**
     * 身份证反面图
     */
    @Column(nullable = false)
    private String  afterImg;
    /**
     * 0待审核  1通过的 2未通过的
     */
    @Column(nullable = false,columnDefinition = "INT default 0")
    private Integer statics=0;
    /**
     * 本人手持证件照
     */
    private String  shouChiImg;
    @Column(nullable = false,updatable = false)
    private Date craeteTime=new Date();
    /**
     * 审核时间
     */
    @Column(insertable = false)
    private Date auditTime=new Date();

    @Column(insertable = false)
    private String auditBy="admin";

    /**
     * 审核批注
     */
    private String comments;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBeforeImg() {
        return beforeImg;
    }

    public void setBeforeImg(String beforeImg) {
        this.beforeImg = beforeImg;
    }

    public String getAfterImg() {
        return afterImg;
    }

    public void setAfterImg(String afterImg) {
        this.afterImg = afterImg;
    }

    public Integer getStatics() {
        return statics;
    }

    public void setStatics(Integer statics) {
        this.statics = statics;
    }

    public String getShouChiImg() {
        return shouChiImg;
    }

    public void setShouChiImg(String shouChiImg) {
        this.shouChiImg = shouChiImg;
    }

    public Date getCraeteTime() {
        return craeteTime;
    }

    public void setCraeteTime(Date craeteTime) {
        this.craeteTime = craeteTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getAuditBy() {
        return auditBy;
    }

    public void setAuditBy(String auditBy) {
        this.auditBy = auditBy;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }
}
